include ../Makefile.am

x86 = 	arch/x86/io.o arch/x86/dt.o arch/x86/arch.o arch/x86/timer.o \
	arch/x86/clock.o arch/x86/mm.o arch/x86/task.o arch/x86/asm_calls.o


GSOURCES = 	boot/boot.o \
		task/task.o task/message.o task/service.o task/term.o \
		mm/mm.o mm/phys.o mm/paged.o \
		syscall.o video.o debug.o util.o driver.o main.o 
		
SOURCES = $(GSOURCES) $(x86)

CFLAGS =  -fno-stack-protector -nostdlib -nostdinc -fno-builtin  -I"." -I"include"
LDFLAGS = -Tlink.ld
ASFLAGS = -felf

all: $(SOURCES) link

clean:
	-rm $(SOURCES) kernel

link:
	$(LD) -T link.ld -o kernel $(SOURCES)


